package com.renli.service.impl;


import com.renli.mapper.UserMapper;
import com.renli.pojo.User;
import com.renli.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {
        List<User> all = userMapper.findAll();
        return all;
    }

    @Override
    public List<User> findNoAccount() {

        return userMapper.selectNoAccount();
    }
}
